On the Subject of Misordered Keys

Another one? Another one.

See Appendix in Ordered Keys for identifying modules in Ordered Keys family.

This module consists of 6 coloured keys, each of which has a 1 - 6 digit label, consisting of numbers in the range 1 - 6.

The possible colours for both the keys and the numbers labelling them are: (R)ed, (G)reen, (B)lue, (C)yan, (M)agenta, and (Y)ellow.

One of the six keys will turn black when highlighted.
This key is referred to as "K" throughout the manual.

The information given by each key is used to locate a number of cells, each within a 6×6 grid, which will have values in the range 1 - 6.

Each key has two values attributed to it. The two sets of keys each contain exactly one of each number in the range 1 - 6.

Push the keys whose positions are given by the first set of values in ascending order of the second set of values.

Pushing the keys in the wrong order will result in a strike.

First key values

Key Colour
RGBCMY
Label
Colour
RBADEFC
GEBCFAD
BDEBACF
CAFECDB
MCDFBEA
YFCADBE
First Digit of Label
123456
Key
Position
(L - R)
1ZYWXUV
2WUYVZX
3VWZUXY
4UXVWYZ
5YVXZWU
6XZUYVW
ABCDEF
U156234
V341562
W623145
X235416
Y564321
Z412653

Second key values

Apply the list of conditions on the labels of each key from left to right to obtain the second key values.

If a condition applies, but its second key value has been previously assigned, continue working down the list.

Ignore K: its second key value will be the one remaining value once the others have been assigned.

If the.....,then the second key value is the...
label has only one digitposition of the key whose first key value is that digit.
label has three or more unique digitsfirst key value of K.
sum of digits is greater than 15first key value of the key whose position is the last digit.
label has less than 3 distinct digitsposition of the key whose first key value is the last digit.
label contains no odd numbersposition of the key whose first key value is the position of this key.
label contains both a 1 and a 6position of the key whose first key value is the first digit of K.
label contains at least two distinct even numbersposition of the key whose first key value is the last digit of K.
label has only one digitthe value given by Grid A.
label has more than one digitthe value given by Grid B.
key has not been assigned a valuethe lowest unassigned second key value.

Note: A digit is unique if it appears exactly once on the label.

Grid A

Label Colour
RGBCMY
Label1215346
2632154
3543621
4364215
5156432
6421563

Grid B

Label Colour
RGBCMY
Last
Digit
of
Label
1+LiI!#
2i#L!+I
3I!+i#L
4#+!LIi
5LI#+i!
6!iI#L+

i- The first digit of the label.

L- The last digit of the label.

#- The number of digits on the label.

+- One plus the sum of labelled digits modulo 6.

I- The position of the key.

!- The minimum modal digit.